package com.yuju.hotel.enums;
/**
 * 
 * 类名：GoodReturnCodeEnum  <br />
 *
 * 功能：房间日志相关接口枚举
 *
 * @author : zhousc <br />
 * @Date : 2017年11月30日 上午9:18:44  <br />
 * @version : 1.1 <br />
 */
public enum LogRoomRecordReturnCodeEnum {
	LOG_QUERY_SUCCESS("yuju-room-log-1000", "房间日志查询成功"),
	lOG_QUERY_FAILURE("yuju-room-log-1001", "房间日志查询失败");
	
	
	private String code;
	private String desc;
	
	LogRoomRecordReturnCodeEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDescByCode(String code) {
		for (GoodReturnCodeEnum enume : GoodReturnCodeEnum.values()) {
			if (enume.getCode().equals(code)) {
				return enume.getDesc();
			}
		}
		
		return "未知枚举类型";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}